cmake_minimum_required(VERSION 3.10)

project(HelloString)

find_package(Boost 1.46.1 REQUIRED COMPONENTS unit_test_framework)

add_library(${PROJECT_NAME} SHARED
    src/hellostring.cpp
)

target_include_directories(${PROJECT_NAME}
    PUBLIC
        ${PROJECT_SOURCE_DIR}/include
)

enable_testing()

add_executable(unit_tests 
    test/unit_tests.cpp)

target_link_libraries(unit_tests
    ${PROJECT_NAME}
    Boost::unit_test_framework
)

target_compile_definitions(unit_tests
    PRIVATE
        BOOST_TEST_DYN_LINK
)

add_test(test_all unit_tests)


